<?php
namespace app\common\model;
use think\Model;

class Fang extends Model
{
	public function getList($count){
		$res 	= $this->order('id desc')->paginate($count);
		return $res;
	}

	public function getOne($id){
		$res 	= $this->find($id);
		return $res;
	}
}